package com.rds.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.rds.common.annotation.Excel;
import com.rds.common.core.domain.BaseEntity;

/**
 * 编码器对象 rda_namecode
 * @author rds
 * @date 2021-10-12
 */
public class RdaNameCode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long Id;

    /** 编码前缀 */
    @Excel(name = "编码前缀")
    private String codePrefix;

    /** 编码后缀 */
    @Excel(name = "编码后缀")
    private String codeSuffix;

    /** 编码当前值 */
    @Excel(name = "编码当前值")
    private String currentValue;

    /** 编码下一值 */
    @Excel(name = "编码下一值")
    private String nextValue;

    /** 编码数字位数(不包括前缀和后缀) */
    @Excel(name = "编码数字位数(不包括前缀和后缀)")
    private Integer codeNumberLength;

    /** 编码器状态 默认1 可用;0 表示不可用 */
    @Excel(name = "编码器状态 默认1 可用;0 表示不可用")
    private Integer status;

    /** 所有者 */
    @Excel(name = "所有者")
    private Long ownerid;

    /** 编码器描述 */
    @Excel(name = "编码器描述")
    private String description;

    /** 关联类型Id */
    private Long typeid;

    public Long getId() {
        return Id;
    }

    public void setId(Long id) {
        Id = id;
    }

    public void setCodePrefix(String codePrefix)
    {
        this.codePrefix = codePrefix;
    }

    public String getCodePrefix()
    {
        return codePrefix;
    }
    public void setCodeSuffix(String codeSuffix)
    {
        this.codeSuffix = codeSuffix;
    }

    public String getCodeSuffix()
    {
        return codeSuffix;
    }
    public void setCurrentValue(String currentValue)
    {
        this.currentValue = currentValue;
    }

    public String getCurrentValue()
    {
        return currentValue;
    }
    public void setNextValue(String nextValue)
    {
        this.nextValue = nextValue;
    }

    public String getNextValue()
    {
        return nextValue;
    }
    public void setCodeNumberLength(Integer codeNumberLength)
    {
        this.codeNumberLength = codeNumberLength;
    }

    public Integer getCodeNumberLength()
    {
        return codeNumberLength;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    public Long getOwnerid() {
        return ownerid;
    }

    public void setOwnerid(Long ownerid) {
        this.ownerid = ownerid;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }

    public Long getTypeid() {
        return typeid;
    }

    public void setTypeid(Long typeid) {
        this.typeid = typeid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("codeId", getId())
            .append("codePrefix", getCodePrefix())
            .append("codeSuffix", getCodeSuffix())
            .append("currentValue", getCurrentValue())
            .append("nextValue", getNextValue())
            .append("codeNumberLength", getCodeNumberLength())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("ownerId", getOwnerid())
            .append("description", getDescription())
            .append("typeid", getTypeid())
            .toString();
    }
}
